what is greedy algorithm in tamil